package com.ruoyi.labdata.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.labdata.mapper.LabOrgnizationThirdMapper;
import com.ruoyi.labdata.domain.LabOrgnizationThird;
import com.ruoyi.labdata.service.ILabOrgnizationThirdService;

/**
 * 三级机构信息Service业务层处理
 * 
 * @author winner pan
 * @date 2022-02-05
 */
@Service
public class LabOrgnizationThirdServiceImpl implements ILabOrgnizationThirdService 
{
    @Autowired
    private LabOrgnizationThirdMapper labOrgnizationThirdMapper;

    /**
     * 查询三级机构信息
     * 
     * @param labId 三级机构信息ID
     * @return 三级机构信息
     */
    @Override
    public LabOrgnizationThird selectLabOrgnizationThirdById(Long labId)
    {
        return labOrgnizationThirdMapper.selectLabOrgnizationThirdById(labId);
    }

    /**
     * 查询三级机构信息列表
     * 
     * @param labOrgnizationThird 三级机构信息
     * @return 三级机构信息
     */
    @Override
    public List<LabOrgnizationThird> selectLabOrgnizationThirdList(LabOrgnizationThird labOrgnizationThird)
    {
        return labOrgnizationThirdMapper.selectLabOrgnizationThirdList(labOrgnizationThird);
    }

    /**
     * 新增三级机构信息
     * 
     * @param labOrgnizationThird 三级机构信息
     * @return 结果
     */
    @Override
    public int insertLabOrgnizationThird(LabOrgnizationThird labOrgnizationThird)
    {
        return labOrgnizationThirdMapper.insertLabOrgnizationThird(labOrgnizationThird);
    }

    /**
     * 修改三级机构信息
     * 
     * @param labOrgnizationThird 三级机构信息
     * @return 结果
     */
    @Override
    public int updateLabOrgnizationThird(LabOrgnizationThird labOrgnizationThird)
    {
        return labOrgnizationThirdMapper.updateLabOrgnizationThird(labOrgnizationThird);
    }

    /**
     * 批量删除三级机构信息
     * 
     * @param labIds 需要删除的三级机构信息ID
     * @return 结果
     */
    @Override
    public int deleteLabOrgnizationThirdByIds(Long[] labIds)
    {
        return labOrgnizationThirdMapper.deleteLabOrgnizationThirdByIds(labIds);
    }

    /**
     * 删除三级机构信息信息
     * 
     * @param labId 三级机构信息ID
     * @return 结果
     */
    @Override
    public int deleteLabOrgnizationThirdById(Long labId)
    {
        return labOrgnizationThirdMapper.deleteLabOrgnizationThirdById(labId);
    }
}
